import { Ref } from 'vue'
import { ElUtil } from '@xtail/ui'

export const isContactNext = (elRef: Ref<HTMLElement | null | undefined>): boolean =>
  Boolean(elRef.value && ElUtil.isContactNext(elRef.value))

export type IsContactNextType = typeof isContactNext
